﻿using CarAppDomain.CarType.Entities;
using CarAppDomain.Rule.Entities;
using CarAppDto.CarType.AreaDtos;
using CarAppDto.Sys.AdminDtos;
using D.UtilCore.Dtos;
using D.UtilSqlsugarOrm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CarAppDomain.CarType.IService
{
    public interface IAreaService : IBaseService<AreaEntity>
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="reqModel"></param>
        /// <returns></returns>
        Task<ApiResult<int>> AddAreaAsync(ReqAddArea reqModel);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<ApiResult<int>> DeleteAreaAsync(List<string> ids);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="reqModel"></param>
        /// <returns></returns>
        Task<ApiResult<int>> UpdateAreaAsync(ReqUpdateArea reqModel);

        /// <summary>
        /// 查询列表
        /// </summary>
        /// <param name="reqModel"></param>
        /// <returns></returns>
        Task<ApiResult<List<RepArea>>> QueryAreaListAsync(ReqQueryAreaList reqModel);

        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="reqQueryAdminPage"></param>
        /// <returns></returns>
        Task<ApiResult<PageModel<RepArea>>> QueryAreaPagesAsync(ReqQueryAreaPage reqQueryPage);

        /// <summary>
        /// 查询单个
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<ApiResult<RepArea>> GetAreaAsync(string id);
    }
}
